public class OverrideDemo04 {
    private void test() {
        System.out.println("test1");
    }

    public static void main(String[] args) {
        OverrideDemo04 od = new H();
        od.test();
    }
}

class H extends OverrideDemo04 {

    public void test() {
        System.out.println("test2");
    }
}
